public class TestDate {
    public int year;
    public int month;
    public int day;

    public void setDate(int year,int month,int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printDate(){
        System.out.println(year+"-"+month+"-"+day);
    }

    public static void main(String[] args) {
        TestDate date = new TestDate();
        date.setDate(2024,9,29);
        date.printDate();
    }
}
